package com.dkm.ec.relation.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.relation.domain.RelationGroup;
import com.dkm.ec.relation.repository.RelationGroupRepository;
import com.dkm.ec.relation.persistence.dao.RelationGroupQueryDao;
import com.dkm.ec.relation.persistence.entity.RelationGroupPo;

/**
 * 对象功能:t_relation_group Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-07-21 16:58:21
 */
@Repository
public class RelationGroupRepositoryImpl extends AbstractRepository<String, RelationGroupPo,RelationGroup> implements RelationGroupRepository{
	  
	@Resource
	private  RelationGroupQueryDao relationGroupQueryDao;

	public RelationGroup newInstance() {
		RelationGroupPo po = new RelationGroupPo();
		RelationGroup relationGroup = SpringHelper.getBean(RelationGroup.class);
		relationGroup.setData(po);
		return relationGroup;
	}

	public RelationGroup newInstance(RelationGroupPo po) {
		RelationGroup relationGroup = SpringHelper.getBean(RelationGroup.class);
		relationGroup.setData(po);
		return relationGroup;
	} 
	
	@Override
	protected IQueryDao<String, RelationGroupPo> getQueryDao() {
		return relationGroupQueryDao;
	}
	
}
